package golf;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Server {
	private int no;
	private String name;
	
	public Server(){}
	public Server(ResultSet rs){
		try {
			setNo( rs.getInt("SVNO") );
			setName( rs.getString("SVNM") );
		} catch (SQLException e) {
			System.out.println("Server()생성자에서 ResultSet사용 도중 에러 발생!");
			e.printStackTrace();
		}
		
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
